'use strict';

module.exports = async (ctx) => {
  let openId = ctx.args.openid;
  //获取并处理所有pays
  ctx.mpserverless.db.collection('account')
    .find({
      'openId': openId
    }, { sort: { 'payDateStamp': -1 } })
    .then(res => {
      return res.result;
    })
}
